Skip to content

refactor!: accept request bodies only through body keyword - #10

Merged
matoous merged 1 commit into
mainfrom
md/explicit-request-bodies
Nov 17, 2026
Merged

matoous merged 1 commit into
mainfrom
md/explicit-request-bodies

Conversation

@matoous

@matoous matoous commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Body fields currently have two calling conventions: amount: 10 and body: {amount: 10}. Accept request payloads only through body:, as a Hash or request model, keeping them separate from path parameters and request options.

Remove the shorthand from generated resources, RBS overloads, and sales search pagination. Update the README, runnable examples, and regression tests. Optional bodies remain optional, including full refunds. Existing shorthand callers must move their payload fields into body:.

@matoous matoous self-assigned this Nov 17, 2026
@matoous
matoous marked this pull request as ready for review November 17, 2026 14:23
@matoous
matoous merged commit e1d1619 into main Nov 17, 2026
14 checks passed
@matoous
matoous deleted the md/explicit-request-bodies branch November 17, 2026 14:23
@sumup-release-bot sumup-release-bot Bot mentioned this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant